package com.hemerasolutions.v2trainer.model.goals;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;

import com.hemerasolutions.v2trainer.model.base.BaseModel;
import com.hemerasolutions.v2trainer.model.modality.Modality;

@Entity
public class Goal extends BaseModel {
 
	private static final long serialVersionUID = 1L;

    @Column(length=50)    
	private String name;

    @Temporal(javax.persistence.TemporalType.TIMESTAMP)	
	private Date goalDate;
	 
	@OneToOne
    @JoinColumn(name = "modality_id") 
    private Modality modality;

	
	
	public Date getGoalDate() {
		return goalDate;
	}

	public String getName() {
		return name;
	}

	public Modality getModality() {
		return modality;
	}

	public void setGoalDate(Date goalDate) {
		this.goalDate = goalDate;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setModality(Modality modality) {
		this.modality = modality;
	}

}
 
